# Author: HZT
# Date: 2023/9/9
import time
import page
from base.base import Base


class WebSkKp(Base):
    # 点击卡片管理
    def sk_kp_click_kpgl(self):
        self.base_find_first(page.web_sk_kp_kpgl).click()

    # 输入开始时间
    def sk_kp_input_kssj(self, text):
        self.base_input(page.web_sk_kp_kssj, text)

    # 输入结束时间
    def sk_kp_input_jssj(self, text):
        self.base_input(page.web_sk_kp_jssj, text)

    # 获取卡片ID列表
    def sk_kp_get_kpid(self):
        return self.base_finds(page.web_sk_kp_kpid)

    # 获取卡密
    def sk_kp_get_km(self):
        return self.base_get_first_text(page.web_sk_kp_km)

    # 点击提交
    def sk_kp_click_tj(self):
        self.base_click(page.web_sk_kp_tj)

    # 获取弹窗提示
    def sk_kp_get_tcts(self):
        return self.base_get_text(page.web_sk_kp_tcts)

    # 点击OK
    def sk_kp_click_ok(self):
        self.base_click(page.web_sk_kp_ok)

    # 获取面值
    def sk_kp_get_mz(self):
        return self.base_get_first_text(page.web_sk_kp_mz)

    # 获取汇率
    def sk_kp_get_hl(self):
        return self.base_get_first_text(page.web_sk_kp_hl)

    # 获取交易额
    def sk_kp_get_jye(self):
        return self.base_get_first_text(page.web_sk_kp_jye)

    # 获取状态
    def sk_kp_get_zt(self):
        return self.base_get_first_text(page.web_sk_kp_zt)

    # 获取说明
    def sk_kp_get_sm(self):
        return self.base_get_first_text(page.web_sk_kp_sm)

    # 点击操作
    def sk_kp_click_cz(self):
        self.base_find_first(page.web_sk_kp_cz).click()

    # 点击手动成功
    def sk_kp_click_sdcg(self):
        self.base_find_first(page.web_sk_kp_sdcg).click()
